    $(function() {
        $("details").click(function() {
		var a=document.getElementsByTagName("details")[0];
			if((a.getAttribute("open")=="")==false){
            animate("#desc", 'fadeInDown');
			return true;
			} else {
			 animate("#desc", 'fadeOutUp');
			 setTimeout(function(){ $("details").removeAttr("open")}, 900);
			}
            return false;
        });
    });

	
    function animate(element_ID, animation) {
        $(element_ID).addClass(animation);
        var wait = window.setTimeout( function(){
            $(element_ID).removeClass(animation)}, 1300
        );
    }